package com.github.tangyi.user.service.sys;

import com.github.tangyi.api.user.model.SysSmsRecord;
import com.github.tangyi.api.user.service.ISysSmsRecordService;
import com.github.tangyi.common.service.CrudService;
import com.github.tangyi.user.mapper.sys.SysSmsRecordMapper;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.github.tangyi.constants.UserCacheName;

@Slf4j
@Service
@AllArgsConstructor
public class SysSmsRecordService extends CrudService<SysSmsRecordMapper, SysSmsRecord> implements ISysSmsRecordService,UserCacheName {

	@Override
	public SysSmsRecord get(Long id) {
		return super.get(id);
	}

	@Override
	@Transactional
	public int insert(SysSmsRecord sysSmsRecord) {
        sysSmsRecord.setCommonValue();
		return super.insert(sysSmsRecord);
	}

	@Override
	@Transactional
	public int update(SysSmsRecord sysSmsRecord) {
        sysSmsRecord.setCommonValue();
		return super.update(sysSmsRecord);
	}

	@Override
	@Transactional
	public int delete(SysSmsRecord sysSmsRecord) {
		return super.delete(sysSmsRecord);
	}

	@Override
	@Transactional
	public int deleteAll(Long[] ids) {
		return super.deleteAll(ids);
	}
}
